home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / fcntl_.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.9 KB  |  63 lines

  1. /* Copyright (C) 2000 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: fcntl_.h,v 1.3 2000/09/19 19:00:10 lpd Exp $ */
  20. /* Declaration of the O_* flags for open */
  21.  
  22. #ifndef fcntl__INCLUDED
  23. #  define fcntl__INCLUDED
  24.  
  25. /*
  26.  * This absurd little file is needed because Microsoft C, in defiance
  27.  * of multiple standards, does not define the O_ modes for 'open'.
  28.  */
  29.  
  30. /*
  31.  * We must include std.h before any file that includes (or might include)
  32.  * sys/types.h.
  33.  */
  34. #include "std.h"
  35. #include <fcntl.h>
  36.  
  37. #if !defined(O_APPEND) && defined(_O_APPEND)
  38. #  define O_APPEND _O_APPEND
  39. #endif
  40. #if !defined(O_BINARY) && defined(_O_BINARY)
  41. #  define O_BINARY _O_BINARY
  42. #endif
  43. #if !defined(O_CREAT) && defined(_O_CREAT)
  44. #  define O_CREAT _O_CREAT
  45. #endif
  46. #if !defined(O_EXCL) && defined(_O_EXCL)
  47. #  define O_EXCL _O_EXCL
  48. #endif
  49. #if !defined(O_RDONLY) && defined(_O_RDONLY)
  50. #  define O_RDONLY _O_RDONLY
  51. #endif
  52. #if !defined(O_RDWR) && defined(_O_RDWR)
  53. #  define O_RDWR _O_RDWR
  54. #endif
  55. #if !defined(O_TRUNC) && defined(_O_TRUNC)
  56. #  define O_TRUNC _O_TRUNC
  57. #endif
  58. #if !defined(O_WRONLY) && defined(_O_WRONLY)
  59. #  define O_WRONLY _O_WRONLY
  60. #endif
  61.  
  62. #endif /* fcntl__INCLUDED */
  63.